package lagou.ExceptionTest;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ThrowsExceptionTest {
    public static void show () throws IOException {
        FileInputStream file = new FileInputStream("D:/a.txt");
        file.close();
    }
    public void run(){
        System.out.println("开始楼板");
    }
    public static void main(String[] args) {
        ThrowsExceptionTest t = new ThrowsExceptionTest();
        t.run();
        try {
            show();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
